<template>
	<view >



		<u-popup :show="popShow" mode="bottom" bgColor="#efefef" :round="10" :closeable="true" @close="close">
			<view>
				<view class="popTitle">
					一键咨询
				</view>
				
				<view class="pop_center">
					
					<button class="btn_kefu" open-type="contact" show-message-card>
					<view class="pop_item">
						
						<view class="pop_left">
							<u-icon name="kefu-ermai" size="28"></u-icon>
						</view>
						<view class="pop_right">
							<view class="pop_title">
								在线客服
							</view>
							<view class="pop_info">
								解答咨询、预订、会员及订单相关问题
							</view>
						</view>
					</view>
					</button>
					
					<view class="pop_item" @click="call">
						<view class="pop_left">
							<u-icon name="phone" size="28"></u-icon>
						</view>
						<view class="pop_right">
							<view class="pop_title">
								电话客服
							</view>
							<view class="pop_info">
								400000000
							</view>
						</view>
					</view>
					
				</view>

				
			</view>
		</u-popup>
	</view>


</template>

<script>
	export default {
		name: "kefu",
    props:['popShow'],
		data() {
			return {
			};
		},
		methods: {
			close() {
        this.$emit('closePop',false)
			},

			call(){
				uni.makePhoneCall({
					phoneNumber: '400800000'
				})
			}
		}
	}
</script>

<style lang="scss">
	.kefu_btn {
		position: fixed;
		top: 900rpx;
		right: 10rpx;
		background-color: #fff;
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;

		z-index: 99999;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.popTitle {
		font-size: 36rpx;
		font-weight: bold;
		text-align: center;
		padding: 20rpx;
		background-color: #fff;
		border-radius: 10rpx 10rpx 0 0;
	}
	
	

	.pop_item {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding: 20rpx;
		background-color: #fff;
		margin: 20rpx 0 0 0;
		

		.pop_right {
			display: flex;
			flex-direction: column;
			align-content: flex-start;
			align-items: flex-start;
			margin-left: 20rpx;
			color: #606266;
			.pop_info{
				color: #999999;
			}
		}
	}
	
	.btn_kefu {
		margin: 0;
		padding: 0;
		background: transparent;
		border: none;
		text-align: center;
		color: #3D3D3D;
		font-size: 24rpx;
		line-height: 1.4;
	}
	
	.btn_kefu::after {
		border: none;
	}
</style>